package com.sac.approval.service;

import com.sac.approval.domain.DelegateMappingDO;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface DelegateMappingService {
	
	DelegateMappingDO get(String userId,String agentUserId);

	DelegateMappingDO getValidDelegate(String userId);
	
	List<DelegateMappingDO> list(Map<String, Object> map);

	List<String> getAgentUserIdList(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(DelegateMappingDO delegateMapping);
	
	int update(DelegateMappingDO delegateMapping);
	
	int remove(String userId);
	
	int batchRemove(String[] userIds);
}
